<div class="box">
  <div class="box-header">
      
    <div class="row">
        <div class="col-sm-4">
            <ob_link><a class="btn" href="{:url('dianAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
            <ob_link><a class="btn export" url="{:url('exportDianList')}"><i class="fa fa-download"></i> 导 出</a></ob_link>
        </div>
        
        <div class="col-sm-8">
            <div class="box-tools search-form pull-right">
                <div class="input-group input-group-sm">
                    
                    <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="支持标题|描述">

                    <div class="input-group-btn">
                      <button type="button" id="search"  url="{:url('dianList')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                    </div>

                </div>
           </div>
        </div>
    </div>

  </div>
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover table-striped">
      <thead>
      <tr>
		  <th>ID</th>
		  <th>用户</th>
          <th>门店名</th>	  
          <th>展示图</th>
          <th>收款账户</th>
		  <th>联系电话</th>
          <th>结算/补贴/平台利润</th>
          <th>状态</th>
          <th>操作状态</th>
          <th>编辑</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
				  <td>{$vo.id}</td>
                  <td>{$vo.username}</td>
				  <td>{$vo.title}</td>
                  <td>
                      <a Onclick="imgcks('{$vo.img_id|get_picture_url}')" target="_blank" data-lightbox="gallery"  ><img class="admin-list-img-size" src="{$vo.img_id|get_picture_url}"/></a>
                  </td>
				  <td>{$vo.type}<br/>账户姓名：{$vo.name}<br/>账户：{$vo.account}</td>
				  <td>{$vo.phone}</td>
                  <td>{$vo.bl}/{$vo.btbl}/{$vo.lrbl}</td>
                    <td>{if $vo.status == 1}已启用{else}<span style="color:red">已禁用</span>{/if}</td>
                    <td>
                        <ob_link><a class="ajax-get" href="{:url('setDianStatus', array('ids' => $vo['id'], 'status' => (int)!$vo['status']))}">{$vo.status_text}</a></ob_link>
                    </td>
                  <td class="col-md-2 text-center">
                      <ob_link><a href="{:url('dianEdit', array('id' => $vo['id']))}" class="btn "><i class="fa fa-edit"></i> 编辑</a></ob_link>
                      <ob_link><a class="btn confirm ajax-get" href="{:url('delDian', array('id' => $vo['id']))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="9" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
      
    {include file="layout/batch_btn_group"/}
  </div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>
    <script>
        //导出功能
        $(".export").click(function(){
            window.location.href = searchFormUrl($(".export"));
        });
    </script>
</div>